<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="Nome: " for="Nome" />
                    <h:inputText id="Nome" value="#{pessoaBean.pessoa.nome}" required="true"/>
                    
                    <h:outputLabel value="Email: " for="Email" />
                    <h:inputText id="Email" value="#{pessoaBean.pessoa.email}" required="true"/>
                    
                    <h:inputSecret value="Senha: "/>
                    <h:inputSecret id="Senha" value="#{pessoaBean.pessoa.senha}" required="true"/>
                    
                    <h:outputLabel value="Numero: " for="Numero" />
                    <h:inputText id="Numero" value="#{pessoaBean.pessoa.n}"/>
                    
                    <h:outputLabel value="NickName: " for="Nickname" />
                    <h:inputText id="Nickname" value="#{pessoaBean.pessoa.nickname}"/>
                    
                    <h:outputLabel value="Telefone: " for="Telefone" />
                    <h:inputText id="Telefone" value="#{pessoaBean.pessoa.fone}"/>
                    
                    <h:outputLabel value="Perfil: " for="Perfil" />
                    <h:inputText id="Perfil" value="#{pessoaBean.pessoa.perfil}"/>
                    
                </h:panelGrid>
                <br />
                <h:commandButton action="listarPessoa" value="#{pessoaBean.grava()}"/>
                <br />
                <br />
                <h:commandLink action="#{tbPessoaController.prepareList}" value="#{bundle.CreateTbPessoaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateTbPessoaIndexLink}"/>
            </h:form>
    </h:body>
</html>

